.class Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;
.super Landroid/widget/BaseAdapter;
.source "ExchangeHistoryActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/m6wmr/ExchangeHistoryActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "MyAdapter"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;


# direct methods
.method private constructor <init>(Lcom/example/m6wmr/ExchangeHistoryActivity;)V
    .locals 0

    .prologue
    .line 449
    iput-object p1, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/example/m6wmr/ExchangeHistoryActivity;Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;)V
    .locals 0

    .prologue
    .line 449
    invoke-direct {p0, p1}, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;-><init>(Lcom/example/m6wmr/ExchangeHistoryActivity;)V

    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 453
    iget-object v0, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->beans:Ljava/util/List;
    invoke-static {v0}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$0(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .param p1, "arg0"    # I

    .prologue
    .line 459
    iget-object v0, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->beans:Ljava/util/List;
    invoke-static {v0}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$0(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .param p1, "arg0"    # I

    .prologue
    .line 465
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5
    .param p1, "arg0"    # I
    .param p2, "arg1"    # Landroid/view/View;
    .param p3, "arg2"    # Landroid/view/ViewGroup;

    .prologue
    const/4 v3, 0x0

    const v4, 0x7f070004

    .line 473
    if-nez p2, :cond_4

    .line 475
    new-instance v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;

    invoke-direct {v0, v3}, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;-><init>(Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;)V

    .line 476
    .local v0, "holder":Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;
    iget-object v1, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->context:Landroid/content/Context;
    invoke-static {v1}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$1(Lcom/example/m6wmr/ExchangeHistoryActivity;)Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f030063

    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 478
    const v1, 0x7f0c025c

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_exchanged_gift_name:Landroid/widget/TextView;

    .line 479
    const v1, 0x7f0c025d

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_exchanged_day:Landroid/widget/TextView;

    .line 480
    const v1, 0x7f0c025f

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_exchange_state:Landroid/widget/TextView;

    .line 481
    const v1, 0x7f0c025e

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_pay_integral:Landroid/widget/TextView;

    .line 483
    invoke-virtual {p2, v0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 489
    :goto_0
    iget-object v2, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_exchanged_gift_name:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->beans:Ljava/util/List;
    invoke-static {v1}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$0(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/IntegralHistroyBean;

    invoke-virtual {v1}, Lbean/IntegralHistroyBean;->getTitle()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 490
    iget-object v2, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_pay_integral:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v1, "- "

    invoke-direct {v3, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->beans:Ljava/util/List;
    invoke-static {v1}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$0(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/IntegralHistroyBean;

    invoke-virtual {v1}, Lbean/IntegralHistroyBean;->getScore()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 491
    iget-object v2, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_exchanged_day:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->beans:Ljava/util/List;
    invoke-static {v1}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$0(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/IntegralHistroyBean;

    invoke-virtual {v1}, Lbean/IntegralHistroyBean;->getAddtime()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 493
    iget-object v1, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->beans:Ljava/util/List;
    invoke-static {v1}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$0(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/IntegralHistroyBean;

    invoke-virtual {v1}, Lbean/IntegralHistroyBean;->getStatus()Ljava/lang/String;

    move-result-object v1

    const-string v2, "0"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 494
    iget-object v1, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_exchange_state:Landroid/widget/TextView;

    const-string v2, "\u5f85\u5904\u7406"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 496
    :cond_0
    iget-object v1, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->beans:Ljava/util/List;
    invoke-static {v1}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$0(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/IntegralHistroyBean;

    invoke-virtual {v1}, Lbean/IntegralHistroyBean;->getStatus()Ljava/lang/String;

    move-result-object v1

    const-string v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 497
    iget-object v1, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_exchange_state:Landroid/widget/TextView;

    const-string v2, "\u914d\u9001\u4e2d"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 499
    :cond_1
    iget-object v1, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->beans:Ljava/util/List;
    invoke-static {v1}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$0(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/IntegralHistroyBean;

    invoke-virtual {v1}, Lbean/IntegralHistroyBean;->getStatus()Ljava/lang/String;

    move-result-object v1

    const-string v2, "3"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 500
    iget-object v1, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_exchange_state:Landroid/widget/TextView;

    const-string v2, "\u5151\u6362\u6210\u529f"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 501
    iget-object v1, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_exchange_state:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->context:Landroid/content/Context;
    invoke-static {v2}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$1(Lcom/example/m6wmr/ExchangeHistoryActivity;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 503
    :cond_2
    iget-object v1, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->beans:Ljava/util/List;
    invoke-static {v1}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$0(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/IntegralHistroyBean;

    invoke-virtual {v1}, Lbean/IntegralHistroyBean;->getStatus()Ljava/lang/String;

    move-result-object v1

    const-string v2, "4"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 504
    iget-object v1, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_exchange_state:Landroid/widget/TextView;

    const-string v2, "\u5df2\u53d6\u6d88\u5151\u6362"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 505
    iget-object v1, v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;->tv_exchange_state:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->context:Landroid/content/Context;
    invoke-static {v2}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$1(Lcom/example/m6wmr/ExchangeHistoryActivity;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 508
    :cond_3
    return-object p2

    .line 486
    .end local v0    # "holder":Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;
    :cond_4
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;

    .restart local v0    # "holder":Lcom/example/m6wmr/ExchangeHistoryActivity$MyHolder;
    goto/16 :goto_0
.end method
